package hotel;

import java.util.ArrayList;

public class User 
{
	private String name;
	private String password;
	private ArrayList<Booking> bookings = new ArrayList<Booking>(); 
	
	public User(String inName, String inPass)
	{
		name = inName;
		password = inPass;
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getPassword()
	{
		return password;
	}
	
	
	public void addBooking(Hotel inHotel, int startday, int endday){
		Booking b = new Booking(inHotel, startday,endday);
		bookings.add(b);
	}
	
	public ArrayList<Booking> getBookings(){
		return bookings;
	}
	
	
	
}
